package CGW.dao;

import CGW.bean.Dingdan;

import java.util.List;

public class DingdanDao extends BaseDao{

    public List<Dingdan> all(int page, int pageSize){
        return all(Dingdan.class, page, pageSize);
    }

    public int total(){
        return count_rows(Dingdan.class);
    }

    public int add(Dingdan order_id){
        return add(order_id, "order_id");
    }

    public int update(Dingdan order_id){
        return update(order_id, "order_id");
    }

    public int delete(int order_id){
        return delete(Dingdan.class, "order_id", order_id);
    }

}
